package com.github.freegeese.autocode.configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/3/30.
 */
public class TableConfig {
    private String tableName;
    private String catalog;
    private String schema;
    private String domainObjectName;
    private String mapperName;

    private Boolean enableInsert;
    private Boolean enableSelectByPrimaryKey;
    private Boolean enableUpdateByPrimaryKey;
    private Boolean enableDeleteByPrimaryKey;

    private List<ColumnConfig> columnConfigs = new ArrayList<>();

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getCatalog() {
        return catalog;
    }

    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    public String getDomainObjectName() {
        return domainObjectName;
    }

    public void setDomainObjectName(String domainObjectName) {
        this.domainObjectName = domainObjectName;
    }

    public String getMapperName() {
        return mapperName;
    }

    public void setMapperName(String mapperName) {
        this.mapperName = mapperName;
    }

    public Boolean getEnableInsert() {
        return enableInsert;
    }

    public void setEnableInsert(Boolean enableInsert) {
        this.enableInsert = enableInsert;
    }

    public Boolean getEnableSelectByPrimaryKey() {
        return enableSelectByPrimaryKey;
    }

    public void setEnableSelectByPrimaryKey(Boolean enableSelectByPrimaryKey) {
        this.enableSelectByPrimaryKey = enableSelectByPrimaryKey;
    }

    public Boolean getEnableUpdateByPrimaryKey() {
        return enableUpdateByPrimaryKey;
    }

    public void setEnableUpdateByPrimaryKey(Boolean enableUpdateByPrimaryKey) {
        this.enableUpdateByPrimaryKey = enableUpdateByPrimaryKey;
    }

    public Boolean getEnableDeleteByPrimaryKey() {
        return enableDeleteByPrimaryKey;
    }

    public void setEnableDeleteByPrimaryKey(Boolean enableDeleteByPrimaryKey) {
        this.enableDeleteByPrimaryKey = enableDeleteByPrimaryKey;
    }

    public List<ColumnConfig> getColumnConfigs() {
        return columnConfigs;
    }

    public void setColumnConfigs(List<ColumnConfig> columnConfigs) {
        this.columnConfigs = columnConfigs;
    }

    public String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }
}
